﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MooseForm
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();

            // RichTextBox清空 
            richTextBox1.Clear();
            //字母"H"是通常设定 richTextBox1.SelectedText = "H";
            //数字"2"设定为基准线下5画素
            richTextBox1.SelectionCharOffset = -5;
            richTextBox1.SelectedText = "2";
            //字母"O"也是通常设定
            richTextBox1.SelectionCharOffset = 0;
            richTextBox1.SelectedText = "O";
            //"（注1）"设定为基准线上5画素
            richTextBox1.SelectionCharOffset = 5;
            richTextBox1.SelectedText = "（注1）";
            //字母"O"也是通常设定
            richTextBox1.SelectionCharOffset = 0;
        }
    }
}
